package qky.api.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import qky.api.entity.TokenEntity;

/**
 * 用户Token
 * 
 * @author qky
 * @email qky_coding_man@gmail.com
 * @date 2022-01-14 23:16:44
 */
@Mapper
public interface TokenDao extends TokenDaoGen {

    @Select("select * from tb_token where token = #{token} and deleted = '0'")
    TokenEntity getByToken(@Param("token") String token);
}
